import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:pornhub_app/model/arround/query_model.dart';
import 'package:pornhub_app/services/user_service.dart';

class BloggerPageController extends GetxController {
  final currentProvince = "".obs;
  final currentCity = "".obs;
  final enableQuery = false.obs;
  final currentIndex = 0.obs;

  final pageController = PageController();

  Rx<QueryModel> query = QueryModel(enableQuery: false, loadType: 1
          // String? bodyShape,
          // String? cityName,
          // String? emotion,
          // int? endAge,
          // int? endHeight,
          // int? endWeight,
          // String? intention,
          // required int loadType,
          // String? prefer,
          // int? startAge,
          // int? startHeight,
          // int? startWeight,
          )
      .obs;

  List<String> intentionItems = ["聊天", "约会", "朋友", "伴侣", "立即见面", "其他"];
  List<String> emotionItems = ["有固定伴侣", "约会中", "单身", "已婚", "开放关系", "保密"];
  List<String> bodyShapeItems = ["猴", "匀称", "壮熊", "肌肉", "狒狒", "胖熊", "保密"];
  List<String> preferItems = ["0", "偏0", "0.5", "偏1", "1", "不10", "其他", "保密"];
  final userService = Get.find<UserService>();

  var currentItems = [].obs;
  @override
  void onInit() {
    currentItems.value = ["", userService.user.cityName ?? ""];
    currentCity.value = userService.user.cityName ?? "";
    super.onInit();
  }
}
